package com.dream.keigezhushou.Activity.acty.login;

import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.dream.keigezhushou.Activity.BaseActivity;
import com.dream.keigezhushou.Activity.wigdt.SystemBarTintManager;
import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends BaseActivity {

    @BindView(R.id.rl_login)
    RelativeLayout rlLogin;
    @BindView(R.id.rl_regesit)
    RelativeLayout rlRegesit;
    @BindView(R.id.ll_sina_login)
    LinearLayout llSinaLogin;
    @BindView(R.id.ll_wei_login)
    LinearLayout llWeiLogin;
    @BindView(R.id.ll_tecent_login)
    LinearLayout llTecentLogin;

    private Intent mIntent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            //setTranslucentStatus(true);
            SystemBarTintManager tintManager = new SystemBarTintManager(this);
            tintManager.setStatusBarTintEnabled(true);
            //tintManager.setStatusBarTintResource(R.color.actionbar_bg);
            SystemBarTintManager.SystemBarConfig config = tintManager.getConfig();
            //listViewDrawer.setPadding(0, config.getPixelInsetTop(true), 0, config.getPixelInsetBottom());
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.rl_login)
    void OnToLogin(){
        mIntent = new Intent(this,Login2Activity.class);
        startActivity(mIntent);
    }

    @OnClick(R.id.rl_regesit)
    void toRegsit(){
        mIntent = new Intent(this,RegestActivity.class);
        startActivity(mIntent);
    }
}
